package com.cc.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName: JwtProperties
 * @Description:
 * @Author: 晓东√
 * @Date: 2024-12-19 09:15
 * @Version: 1.0
 **/
@Configuration
@ConfigurationProperties(prefix = "jwt")//关联配置文件中jwt的数据
@Data
public class JwtProperties {
    //request header  : Authorization
    private String tokenHeader;
    /*对令牌解码*/
    private String secret;
    /*令牌过期时间*/
    private Long expiration;
}
